import { http } from '@/utils/http'

/* 获取轮播图 */
export interface BannerItem {
  bannerId: number
  bannertitle: string
  bannerimage: string
  bannercateId: number
  bannertitleId: number
  bannercontent: string | null
  isdelete: number
  updatetime: string
  createtime: string
  createuserid: number
  publishtime: string
  bannerstatus: number
  webUrl: string
  mini_Url: string
  deptType: number
  activeIsBanner: number
}

export interface BannerData {
  total: number
  items: BannerItem[]
}

export const getBannerList = (): Promise<IResData<BannerData>> => {
  return http.get<BannerData>('/api/MP/GetBannerList')
}
